#import <Cocoa/Cocoa.h>

@interface SolarSeekMessageReader : NSObject {
	NSMutableData *currentMessageData;
  NSMutableData *previousData;
  
	int messageSize;
	NSInputStream *stream;
	
	__weak id delegate;
  
  bool autoOpenStream;
	
}
@property (assign) NSInputStream *stream;
@property (assign) __weak id delegate;
@property (assign) bool autoOpenStream;

-(void) open;
+(SolarSeekMessageReader *) readerWithStream:(NSInputStream *)stream andDelegate:(id)theDelegate;
@end
